package com.wanmait.wisdom.manage.controller;

import com.wanmait.wisdom.entity.Car;
import com.wanmait.wisdom.manage.service.ManageCarService;
import com.wanmait.wisdom.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("manage")
public class ManageCarController {
    @Resource
    private ManageCarService manageCarService;


    @GetMapping("getCarCount")
    public AjaxResult getCarCount() {
        return AjaxResult.success(manageCarService.getCarCount());
    }

}
